#include <stdio.h>
#include <stdlib.h>


int string_length(char * stack)
{
	if (NULL == stack) {
	    exit(-1);	
	}
	if ('\0' == *stack) {
		return 0;
	}
	return 1 + string_length(stack+1);
}
/*
int main()
{
	char * str = "aaaaaaaaaa";
	printf("%d\n", string_length(str));
}
*/
